home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 2: CDPD 1 / Almathera Ten on Ten - Disc 2: CDPD 1.iso / pd / 201-225 / 214 / arcprep / arcprep.doc < prev    next >
Text File  |  1995-03-13  |  5KB  |  121 lines

  1.                            A R C - P R E P A R E
  2.  
  3.             (C) Nov. 25th 1988 14:45 CET/MEZ by Garry Glendown
  4.  
  5.  This program is placed in the public domain, no fee may be charged except
  6.  for media and copying. Distribution is only permitted via electronic
  7.  mail and similar and by Fred Fish's PD Disks. No other PD series may include
  8.  ArcPrep on one of their disks.
  9.   You may make any changes to ArcPrep, but I would really appreciate it if
  10.     you could send me the new sources (except conversion to Lattice-C or
  11.           Modula-II) or at least a short note about what you did...
  12.  
  13.  
  14.    "Spread me, I want to travel! But please keep all my parts together!!!"
  15.  
  16.  
  17. ArcPrep will prepare any files and/or directories for usage with 'Arc', 'Zoo'
  18. or any other program that can't scan through different directories and/or
  19. handle long filenames.
  20.  
  21. To use, just type:
  22.  
  23.         ArcPrep <StartPath> [-inventory]
  24.  
  25. where <StartPath> is the path, from which ArcPrep will start to find *ALL*
  26. files. It will then create two script-files, 'PREP_FILES' to rename the
  27. files before usage of Arc, and 'EXECUTE_ME' to get the old names and
  28. directory-structure back. Adding a '-i' as second parameter will create an
  29. inventory (named 'INVENTORY' in the same directory) which will show all the
  30. files included in the archive with the original filename and -path and their
  31. new name (Arc-xxxxx)
  32.  
  33.  
  34.                              How to use...
  35.  
  36. The line:
  37.  
  38.         ArcPrep dh0:devs
  39.  
  40. will find all files in the devs-drawer and create the coresponding script-
  41. files. The file 'PREP_FILES' might then look like this:
  42.  
  43.                 Rename mountlist Arc-00000
  44.                 Rename sddevice Arc-00001
  45.                 Rename system-configuration Arc-00002
  46.                 Rename clipboards/0 Arc-00003
  47.                 delete dh0:devs/clipboards
  48.                         :
  49.                         :
  50.                 Rename jd_dev.device Arc-00013
  51.                 Rename load.device Arc-00014
  52.                 Rename narrator.device Arc-00015
  53.                 Rename parallel.device Arc-00016
  54.                 Rename printer.device Arc-00017
  55.                 Rename ramdrive.device Arc-00018
  56.  
  57.  
  58. and the 'EXECUTE_ME'-file will look like this:
  59.  
  60.                 Rename Arc-00000 mountlist
  61.                 Rename Arc-00001 sddevice
  62.                 Rename Arc-00002 system-configuration
  63.                 makedir clipboards
  64.                 Rename Arc-00003 clipboards/0
  65.                         :
  66.                         :
  67.                 Rename Arc-00013 jd_dev.device
  68.                 Rename Arc-00014 load.device
  69.                 Rename Arc-00015 narrator.device
  70.                 Rename Arc-00016 parallel.device
  71.                 Rename Arc-00017 printer.device
  72.                 Rename Arc-00018 ramdrive.device
  73.  
  74. These files will be found in the DH0:devs - directory.
  75.  
  76. The next step is executing the 'PREP_FILES'-script, so type:
  77.  
  78.                 cd dh0:devs
  79.                 execute prep_files
  80.  
  81. After a shorter or longer period the prompt should appear. You can now use
  82. Arc without any problems. Just type:
  83.  
  84.                 arc -m dev
  85.  
  86. and voila, the whole devs-directory is only 1 file...
  87.  
  88. Wasn't that easy ?
  89.  
  90.  
  91. BUGS:
  92.         I'd be happy if I could repeat what Leo had in one of his programs,
  93.         ('There are NO bugs in my program'). I have to refer to the second
  94.         part of his 'speech': 'However, there may be any number of
  95.         undesireable features'.
  96.         While writing the first version of this program (with automatic
  97.         rename&delete), I've had some occasional crashes, usually because of
  98.         insufficient stack. I didn't notice them today (while correcting
  99.         the program), but as they didn't appear like I wanted them to with
  100.         the old version, I'm not quiete sure if the bug's out. So you
  101.         better use a stack of about 20000 or so. I've tried it with a
  102.         directory of about 90 files and about 4 levels of nested dirs,
  103.         which worked fine. If you should get a guru, just increase the
  104.         stack by another 20K or so, that should get it to work earlier or
  105.         later (60000 worked with a subdir of 550 files on my harddisk).
  106.  
  107. If you really like this program and think it's useful, just send me
  108. anything to show me your appreciation. I'll take anything (well, almost),
  109. if it's $5, $10, $50 or a car, a boat, an airplane, Fort Knox, just send it
  110. to me. (If it's one of the latter, I'll pay the postage...)
  111.  
  112.                 Garry Glendown
  113.                 Gueldene Kammer 35
  114.                 6430 Bad Hersfeld
  115.                 West Germany
  116.       Tel.: 06621-73483
  117.  
  118. or, for any written thanks:
  119.  
  120.                 Garry @ DGIHRZ01 . BITNET
  121.